import request from '@/utils/request.js'

//查询审核项目
export function findProjects(data) {
  return request({
    url: `business/report/app/findProjects`,
    method: 'GET',
		params:data,
  })
}

//根据id查询审核子项目
export function findSubProjects(data) {
  return request({
    url: `business/report/app/findSubProjects`,
    method: 'GET',
		params:data,
  })
}

//查询审核项目-待审核任务数
export function countAudit(data) {
  return request({
    url: `business/report/app/countAudit`,
    method: 'POST',
		params:data,
  })
}

//查询审核项目-查询待审核任务信息
export function findAuditPoints(data) {
  return request({
    url: `business/report/app/findAuditPoints`,
    method: 'GET',
		params:data,
  })
}

//查询子项目数量
export function countSubProject(data) {
  return request({
    url: `business/report/app/countSubProject`,
    method: 'POST',
		params:data,
  })
}

//查询测点数量
export function countPoints(data) {
  return request({
    url: `business/report/app/countPoints`,
    method: 'POST',
		params:data,
  })
}

//查询具体工序
export function findProcess(data) {
  return request({
    url: `business/report/app/findProcess/${data.projectId}/${data.subProjectId}`,
    method: 'GET',
  })
}

//查询具体工序设备
export function equipments(data) {
  return request({
    url: `business/report/app/equipments/${data}`,
    method: 'GET',
  })
}

//查询具体工序设备详情
export function equipmentDetail(data) {
  return request({
    url: `business/report/app/equipmentDetail/${data.standardProId}/${data.standardId}`,
    method: 'GET',
  })
}

//驳回
export function auditReject(data) {
	return request({
		url: `business/report/app/auditReject`,
		method: 'POST',
		params: data
	})
}

//通过
export function auditPass(data) {
	return request({
		url: `business/report/app/auditPass`,
		method: 'POST',
		params: data
	})
}

//考核评分
export function examine(data) {
  return request({
    url: `business/zdhjcassessment/sub/${data}`,
    method: 'GET',
  })
}

//提交审批
export function auditSubmit(data) {
	return request({
		url: `business/report/app/auditProcess`,
		method: 'POST',
		params: data
	})
}

